package com.stark.wechat.service.menu.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 查询自定义菜单信息返回体
 *
 * @author <a href="mengbin@eastsoft.com.cn">Ben</a>
 * @version 1.0.0
 * @since 2025/8/6
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GetCurrentSelfmenuInfoResponsePayload implements Serializable {

    private static final long serialVersionUID = -5683795360086970824L;

    /**
     * 菜单是否开启，0代表未开启，1代表开启
     */
    @JsonProperty("is_menu_open")
    private Integer isMenuOpen;

    /**
     * 菜单信息
     */
    @JsonProperty("selfmenu_info")
    private SelfmenuInfo selfmenuInfo;

    /**
     * 菜单信息
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SelfmenuInfo implements Serializable {

        private static final long serialVersionUID = -2818640581772813510L;

        /**
         * 菜单按钮
         */
        private List<Button> button = new ArrayList<>();

    }

}
